package one;

import one.flyImpl.FlyRocektPowered;
import one.duck.Duck;
import one.duck.ModelDuck;
import one.duck.MullardDuck;

public class MiniDuckSimulator {
    public static void main(String[] args) {
        Duck mallard = new MullardDuck();
        mallard.performFly();
        mallard.performQuack();

        Duck model = new ModelDuck();
        model.performFly();
        model.setFlyBehavior(new FlyRocektPowered());
        model.performFly();
    }
}